package com.bub.pay.core.dao;


import com.bub.pay.core.base.BaseDao;
import com.bub.pay.core.entity.domain.SysPerm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * <br>
 * <b>功能：</b>BnSysMenuDao<br>
 * @author Leo
 * @version 1.0
 * @date ${date}
 */
public interface SysPermDao extends BaseDao<SysPerm> {

    List<SysPerm> queryPermIdsByUserId(@Param("userId") Long userId, @Param("userType") Integer userType);


    List<SysPerm> roleDifferencePerm(@Param("roleId")Long roleId);


    int countPermSizeByRole(@Param("roleId")Long roleId);

    int countEmployeeNumByRole(@Param("roleId")Long roleId);
}
